package com.nf.xiaomi.service.impl;


import com.nf.xiaomi.dao.EmployeeDao;
import com.nf.xiaomi.dao.impl.EmployeeDaoImpl;
import com.nf.xiaomi.entity.EmployeeEntity;
import com.nf.xiaomi.service.EmployeeService;

import java.util.List;

public class EmployeeServiceImpl implements EmployeeService {
    EmployeeDao dao = new EmployeeDaoImpl();

    public List<EmployeeEntity> getAll() {
        return dao.getAll();
    }

    public List<EmployeeEntity> getAll(String employeeName) {
        return dao.getAll(employeeName);
    }

    public Integer deleteByID(Integer employeeID) {
        return dao.deleteByID(employeeID);
    }
}
